.class public Lcom/estrongs/android/ui/adapter/g;
.super Landroid/widget/BaseAdapter;
.source "ListViewAdapter_History.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field private a:Landroid/content/Context;

.field b:[Lcom/estrongs/android/util/q0$a;

.field c:[Lcom/estrongs/android/util/q0$a;

.field d:Lcom/estrongs/android/pop/view/FileExplorerActivity$c3;


# direct methods
.method public constructor <init>(Landroid/content/Context;Z)V
    .locals 0

    .line 1
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/ui/adapter/g;->a:Landroid/content/Context;

    .line 3
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/util/q0;->i()Lcom/estrongs/android/util/q0;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/util/q0;->e()Z

    move-result p1

    if-nez p1, :cond_0

    .line 4
    invoke-static {}, Lcom/estrongs/android/util/q0;->i()Lcom/estrongs/android/util/q0;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/util/q0;->f()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 5
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 6
    :cond_0
    :goto_0
    invoke-direct {p0}, Lcom/estrongs/android/ui/adapter/g;->a()V

    return-void
.end method

.method private a(I)Lcom/estrongs/android/util/q0$a;
    .locals 4

    const/4 v0, 0x0

    .line 2
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/g;->c:[Lcom/estrongs/android/util/q0$a;

    const/4 v2, 0x0

    if-eqz v1, :cond_1

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/g;->c:[Lcom/estrongs/android/util/q0$a;

    array-length v1, v1

    if-ge p1, v1, :cond_0

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/g;->c:[Lcom/estrongs/android/util/q0$a;

    aget-object p1, v1, p1

    const/4 v1, 0x1

    .line 5
    iput-boolean v1, p1, Lcom/estrongs/android/util/q0$a;->g:Z

    return-object p1

    .line 6
    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/g;->c:[Lcom/estrongs/android/util/q0$a;

    array-length v1, v1

    goto :goto_0

    :cond_1
    const/4 v1, 0x0

    .line 7
    :goto_0
    iget-object v3, p0, Lcom/estrongs/android/ui/adapter/g;->b:[Lcom/estrongs/android/util/q0$a;

    if-eqz v3, :cond_2

    .line 8
    iget-object v3, p0, Lcom/estrongs/android/ui/adapter/g;->b:[Lcom/estrongs/android/util/q0$a;

    sub-int/2addr p1, v1

    aget-object p1, v3, p1

    .line 9
    iput-boolean v2, p1, Lcom/estrongs/android/util/q0$a;->g:Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    :cond_2
    return-object v0
.end method

.method private a()V
    .locals 1

    .line 11
    invoke-static {}, Lcom/estrongs/android/util/q0;->i()Lcom/estrongs/android/util/q0;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/util/q0;->d()[Lcom/estrongs/android/util/q0$a;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/adapter/g;->b:[Lcom/estrongs/android/util/q0$a;

    return-void
.end method


# virtual methods
.method public a(Lcom/estrongs/android/pop/view/FileExplorerActivity$c3;)V
    .locals 0

    .line 10
    iput-object p1, p0, Lcom/estrongs/android/ui/adapter/g;->d:Lcom/estrongs/android/pop/view/FileExplorerActivity$c3;

    return-void
.end method

.method public a([Lcom/estrongs/android/util/q0$a;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/adapter/g;->c:[Lcom/estrongs/android/util/q0$a;

    return-void
.end method

.method public getCount()I
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/g;->b:[Lcom/estrongs/android/util/q0$a;

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    array-length v0, v0

    add-int/2addr v1, v0

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/g;->c:[Lcom/estrongs/android/util/q0$a;

    if-eqz v0, :cond_1

    array-length v0, v0

    add-int/2addr v1, v0

    :cond_1
    return v1
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 0

    const/4 p1, 0x0

    return-object p1
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 9

    if-nez p2, :cond_0

    .line 1
    iget-object p2, p0, Lcom/estrongs/android/ui/adapter/g;->a:Landroid/content/Context;

    invoke-static {p2}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const p3, 0x7f0c01cc

    const/4 v0, 0x0

    invoke-virtual {p2, p3, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    :cond_0
    const p3, 0x7f090531

    .line 2
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/ImageView;

    const v0, 0x7f090b67

    .line 3
    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v1, 0x7f0908bc

    .line 4
    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 5
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/adapter/g;->a(I)Lcom/estrongs/android/util/q0$a;

    move-result-object p1

    if-nez p1, :cond_1

    return-object p2

    .line 6
    :cond_1
    iget-boolean v2, p1, Lcom/estrongs/android/util/q0$a;->g:Z

    const/16 v3, 0x8

    const/4 v4, 0x2

    const/4 v5, 0x0

    if-eqz v2, :cond_3

    .line 7
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v2

    iget v6, p1, Lcom/estrongs/android/util/q0$a;->j:I

    invoke-virtual {v2, v6}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {p3, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 8
    iget-object p3, p1, Lcom/estrongs/android/util/q0$a;->a:Ljava/lang/String;

    .line 9
    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 10
    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 11
    iget-object p3, p1, Lcom/estrongs/android/util/q0$a;->i:Ljava/lang/String;

    .line 12
    iget-boolean v1, p1, Lcom/estrongs/android/util/q0$a;->h:Z

    if-eqz v1, :cond_2

    .line 13
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/pop/l;->j1()Z

    move-result v1

    if-eqz v1, :cond_2

    .line 14
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p3, " (%s/%s)"

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    .line 15
    iget-object p1, p1, Lcom/estrongs/android/util/q0$a;->a:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/fs/util/f;->h(Ljava/lang/String;)[J

    move-result-object p1

    new-array v1, v4, [Ljava/lang/Object;

    .line 16
    aget-wide v2, p1, v5

    const/4 v6, 0x1

    aget-wide v7, p1, v6

    sub-long/2addr v2, v7

    aget-wide v7, p1, v4

    mul-long v2, v2, v7

    invoke-static {v2, v3}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v2

    aput-object v2, v1, v5

    aget-wide v2, p1, v5

    aget-wide v4, p1, v4

    mul-long v2, v2, v4

    .line 17
    invoke-static {v2, v3}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object p1

    aput-object p1, v1, v6

    .line 18
    invoke-static {p3, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p3

    .line 19
    :cond_2
    invoke-virtual {v0, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_3

    .line 20
    :cond_3
    iget v2, p1, Lcom/estrongs/android/util/q0$a;->c:I

    const v6, 0x7f080816

    if-ne v2, v4, :cond_5

    .line 21
    iget-object v2, p1, Lcom/estrongs/android/util/q0$a;->e:Landroid/graphics/Bitmap;

    if-eqz v2, :cond_4

    .line 22
    invoke-virtual {p3, v2}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    goto :goto_0

    :cond_4
    const v2, 0x40032

    .line 23
    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Les/rj;->b(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {p3, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 24
    :goto_0
    iget-object p3, p1, Lcom/estrongs/android/util/q0$a;->a:Ljava/lang/String;

    invoke-virtual {v1, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 25
    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 26
    iget-object p3, p0, Lcom/estrongs/android/ui/adapter/g;->a:Landroid/content/Context;

    const/high16 v2, 0x40000000    # 2.0f

    invoke-static {p3, v2}, Les/fy;->a(Landroid/content/Context;F)I

    move-result p3

    invoke-virtual {v1, v5, v5, v5, p3}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 27
    invoke-virtual {p2, v6}, Landroid/view/View;->setBackgroundResource(I)V

    .line 28
    iget-object p1, p1, Lcom/estrongs/android/util/q0$a;->d:Ljava/lang/String;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 29
    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 30
    iget-object p1, p0, Lcom/estrongs/android/ui/adapter/g;->a:Landroid/content/Context;

    invoke-static {p1, v2}, Les/fy;->a(Landroid/content/Context;F)I

    move-result p1

    invoke-virtual {v0, v5, p1, v5, v5}, Landroid/widget/TextView;->setPadding(IIII)V

    goto/16 :goto_3

    .line 31
    :cond_5
    iget-object v2, p1, Lcom/estrongs/android/util/q0$a;->a:Ljava/lang/String;

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_6

    .line 32
    iget-object v2, p0, Lcom/estrongs/android/ui/adapter/g;->a:Landroid/content/Context;

    invoke-static {v2}, Lcom/estrongs/fs/f;->a(Landroid/content/Context;)Lcom/estrongs/fs/f;

    move-result-object v2

    iget-object v4, p1, Lcom/estrongs/android/util/q0$a;->a:Ljava/lang/String;

    .line 33
    invoke-virtual {v2, v4}, Lcom/estrongs/fs/f;->g(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object v2

    .line 34
    invoke-static {v2}, Les/rj;->c(Lcom/estrongs/fs/g;)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {p3, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_1

    .line 35
    :cond_6
    iget-object v2, p1, Lcom/estrongs/android/util/q0$a;->a:Ljava/lang/String;

    const-string v4, "/"

    invoke-virtual {v2, v4}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_8

    .line 36
    iget-object v2, p1, Lcom/estrongs/android/util/q0$a;->a:Ljava/lang/String;

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->M1(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7

    .line 37
    sget-object v2, Lcom/estrongs/fs/l;->F:Lcom/estrongs/fs/l;

    invoke-virtual {v2}, Lcom/estrongs/fs/l;->a()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Les/rj;->b(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {p3, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_1

    .line 38
    :cond_7
    sget-object v2, Lcom/estrongs/fs/l;->E:Lcom/estrongs/fs/l;

    invoke-virtual {v2}, Lcom/estrongs/fs/l;->a()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Les/rj;->b(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {p3, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_1

    .line 39
    :cond_8
    iget-object v2, p1, Lcom/estrongs/android/util/q0$a;->a:Ljava/lang/String;

    invoke-static {v2}, Lcom/estrongs/android/util/n0;->b(Ljava/lang/String;)I

    move-result v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Les/rj;->b(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {p3, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 40
    :goto_1
    iget-object p3, p1, Lcom/estrongs/android/util/q0$a;->a:Ljava/lang/String;

    invoke-static {p3}, Lcom/estrongs/android/util/h0;->S(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    if-nez p3, :cond_9

    .line 41
    iget-object p1, p1, Lcom/estrongs/android/util/q0$a;->a:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->h(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    goto :goto_2

    .line 42
    :cond_9
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object p1, p1, Lcom/estrongs/android/util/q0$a;->a:Ljava/lang/String;

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->K(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, ":/"

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 43
    :goto_2
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->B2(Ljava/lang/String;)Z

    move-result p3

    if-eqz p3, :cond_a

    .line 44
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 45
    :cond_a
    invoke-virtual {v1, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 46
    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setVisibility(I)V

    .line 47
    invoke-virtual {p2, v6}, Landroid/view/View;->setBackgroundResource(I)V

    .line 48
    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setVisibility(I)V

    :goto_3
    return-object p2
.end method

.method public notifyDataSetChanged()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/adapter/g;->a()V

    .line 2
    invoke-super {p0}, Landroid/widget/BaseAdapter;->notifyDataSetChanged()V

    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView<",
            "*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .line 1
    :try_start_0
    invoke-direct {p0, p3}, Lcom/estrongs/android/ui/adapter/g;->a(I)Lcom/estrongs/android/util/q0$a;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 2
    iget-boolean p2, p1, Lcom/estrongs/android/util/q0$a;->g:Z

    if-eqz p2, :cond_0

    iget-object p2, p1, Lcom/estrongs/android/util/q0$a;->k:Ljava/lang/String;

    if-eqz p2, :cond_0

    iget-object p2, p1, Lcom/estrongs/android/util/q0$a;->l:Ljava/lang/String;

    if-eqz p2, :cond_0

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p2

    iget-object p4, p1, Lcom/estrongs/android/util/q0$a;->k:Ljava/lang/String;

    iget-object p5, p1, Lcom/estrongs/android/util/q0$a;->l:Ljava/lang/String;

    invoke-virtual {p2, p4, p5, p3}, Lcom/estrongs/android/pop/l;->a(Ljava/lang/String;Ljava/lang/String;I)V

    .line 4
    :cond_0
    iget-object p2, p0, Lcom/estrongs/android/ui/adapter/g;->d:Lcom/estrongs/android/pop/view/FileExplorerActivity$c3;

    iget-object p1, p1, Lcom/estrongs/android/util/q0$a;->a:Ljava/lang/String;

    const/4 p3, 0x0

    invoke-interface {p2, p1, p3}, Lcom/estrongs/android/pop/view/FileExplorerActivity$c3;->a(Ljava/lang/String;Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 5
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :cond_1
    :goto_0
    return-void
.end method
